﻿using System;

namespace Validate.Net
{
    /// <summary>
    /// Validate校验抽象类
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public abstract class AbstractValidateAttribute : Attribute
    {
        /// <summary>
        /// Validate校验抽象类方法
        /// </summary>
        /// <param name="value"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        public abstract bool Validate(object value, out string msg);
    }
}
